<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.pizzaonline.utils.Utils" %>
<%@ page import="java.util.*" %>

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%
	String aff = request.getParameter("aff");
	ServletContext c = this.getServletConfig().getServletContext();
	if (aff == null) {
%>
<wml>
	<card id="cours" title="Pizza Online :: Accueil">
		<p align="center">Bienvenue sur le site de Pizza Online. Vous pouvez consultez nos diff&eacute;rents produits ici :<br />
			<a href="index.jsp?aff=Menu" >Nos menus</a><br />
			<a href="index.jsp?aff=Pizza" >Nos pizzas</a><br />
			<a href="index.jsp?aff=Entree" >Nos entr&eacute;es</a><br />
			<a href="index.jsp?aff=Dessert" >Nos desserts</a>
		</p>
	</card>
</wml>
<%

	} else if (aff.equals("Menu") || aff.equals("Pizza") || aff.equals("Entree") || aff.equals("Dessert")) {
		Hashtable<String,String> h=new Hashtable<String,String>(2);
		h.put("Aff",aff);
		Utils.lancerXSLT(out,c.getRealPath("xml/carte.xml"),c.getRealPath("wml/affiche_pizza.xsl"),false,h);
	} else {
		Utils.rediriger(out, "index.jsp");
	}
%>